{template 'header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#180153{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{margin:1.7% 0 0 1.7%;}
	.box .box-item{float:left;text-align:center;display:block;text-decoration:none;outline:none; margin:0 1.4% 1.4% 0;width:31.93%;height:100px; background:#d47314; color:#FFF;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; font-size:14px; display:block; width:90%; height:30px; line-height:30px; margin:0 5%; text-align:center; overflow:hidden;}
	.box .box-item i{display:block; text-align:center; height:70px; line-height:70px; margin:0 auto; font-size:35px; color:#FFF; overflow:hidden;}
	.box .box-item span.img{display:block; height:70px;}
	.box .box-item img{display:inline-block; height:70px; margin:0 auto;}
	.box .box-item.item1{width:48.6%;height:120px;}
	.box .box-item.item1 i{height:70px; padding-top:10px; margin:0 auto;}.box .box-item.item1 span{height:50px;}
	.box .box-item.item1 span.img{height:80px;}
	.box .box-item.item1 img{display:block; height:80px; margin:0 auto;}
	.box .box-item.item2,.box .box-item.item3{width:48.6%; height:58px; margin-bottom:1.65%;}
	.box .box-item.item2 i,.box .box-item.item3 i,.box .box-item.item2 span.img,.box .box-item.item3 span.img{float:left; display:block; width:40%; margin-right:5%;text-align:center; height:58px; line-height:58px;}
	.box .box-item.item2 img,.box .box-item.item3 img{ display:block; height:54px; margin:2px auto;}
	.box .box-item.item2 span,.box .box-item.item3 span{display:block; width:50%; text-align:left; height:58px; line-height:58px;}
	.box .box-item.item4,.box .box-item.item9{width:65.26%;}
	.box .box-item.pic i{width:65%; height:100px; line-height:100px; left:0;}
	.box .box-item.pic span{width:31%; right:2%; top:30%;}
	.footer{color:#dddddd;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{loop $navs $nav}
	{php if($num == 0) $bg = '#038BA1';}
	{php if($num == 1) $bg = '#2978EE';}
	{php if($num == 2) $bg = '#A502AE';}
	{php if($num == 3) $bg = '#E0971C';}
	{php if($num == 4) $bg = '#1D63C4';}
	{php if($num == 5) $bg = '#B11CB6';}
	{php if($num == 6) $bg = '#543da5';}
	{php if($num == 7) $bg = '#08A80A';}
	{php if($num == 8) $bg = '#DC592F';}
	{php if($num == 9) $bg = '#B31B44';}
	<a href="{$nav['url']}" class="box-item {if $num == 0}item1{else if $num == 1}item2{else if $num == 2}item3{else if $num == 3}item4{else if $num == 9}item9{else}icon{/if}" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<span class="img"><img src="{$_W['attachurl']}{$nav['icon']}"></span>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 9) $num = 0;}
	{/loop}
</div>
{template 'footer'}